home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 3
/
003.d81
/
gardning tools
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
6KB
|
229 lines
10 rem *******************************
20 rem * *
30 rem * gardner's prompting tools *
40 rem * circa. 1984 *
50 rem *******************************
60 :
65 poke783,peek(783)and254
70 print"[147]":poke53281,7:gosub20000
80 :
90 :
100 poke783,peek(783)and254:poke53281,7:print"[147]"
105 rem clear carry flag
110 h1=2:h2=2:h3=35:h4=35
120 v1=2:v2=22:v3=2:v4=22
130 rem set up horizontal & vertical
140 :
150 pl=65520
160 rem sys address for 'plot' routine
165 :
170 :
180 :
200 rem first character
205 :
210 m$="[206][195][205][194]"
215 c1$="shift 'n'- [206]":c2$="shift 'm'- [205]":c3$="shift 'c'- [195]":c4$="shift 'b'- [194]"
220 ln=210:p=1:gosub10000
290 :
295 :
300 rem second character
310 m$="[213][201][203][202]"
315 c1$="shift 'u'- [213]":c2$="shift 'i'- [201]":c3$="shift 'k'- [203]":c4$="shift 'j'- [202]"
320 ln=310:p=1:gosub10000
390 :
395 :
400 rem third character
410 m$="[210][198][196][197]"
415 c1$="shift 'e'- [197]":c2$="shift 'd'- [196]":c3$="shift 'f'- [198]":c4$="shift 'r'- [210]"
420 ln=410:p=1:gosub10000
490 :
495 :
500 rem fourth character
510 m$="[212][199][200][217][212][199][200][217]"
515 c1$="shift 't'- [212]":c2$="shift 'g'- [199]":c3$="shift 'h'- [200]":c4$="shift 'y'- [217]"
520 ln=510:p=1:gosub10000
590 :
595 :
600 rem fifth character
610 m$="[207][208][186][204]"
615 c1$="shift 'o'- [207]":c2$="shift 'p'- [208]":c3$="shift '@'- [186]":c4$="shift 'l'- [204]"
620 ln=610:p=1:gosub10000
690 :
695 :
700 rem sixth character
710 m$="[209][215]"
715 c1$="shift 'q'- [209]":c2$="shift 'w'- [215]":c3$="":c4$=""
720 ln=710:p=1:gosub10000
790 :
795 :
800 rem seventh character
810 m$="><"
815 c1$="shift '.'- >":c2$="shift ','- <":c3$="":c4$=""
820 ln=810:p=1:gosub10000
890 :
895 :
900 rem eighth character
910 m$=". "
915 c1$=" period":c2$=" space":c3$="":c4$=""
920 ln=910:p=1:gosub10000
990 :
995 :
1000 rem ninth character
1010 m$="(o)(0)"
1015 c1$="shift '8'- (":c2$="shift '9'- )":c3$=" oh":c4$=" zero"
1020 ln=1010:p=1:gosub10000
1090 :
1095 :
1100 rem tenth character
1110 m$="[201][194][213]"
1115 c1$="shift 'u'- [213]":c2$="shift 'i'- [201]":c3$="shift 'b'- [194]":c4$=""
1120 ln=1110:p=1:gosub10000
1190 :
1195 :
1200 rem eleventh character
1210 m$="+[219]"
1215 c1$="shift '+'- [219]":c2$="plus sign":c3$="":c4$=""
1220 ln=1210:p=1:gosub10000
1290 :
1295 :
1300 rem twelfth character
1310 m$="[171][177][179][178]"
1315 c1$=" c= 'q'- [171]":c2$=" c= 'w'- [179]":c3$=" c= 'e'- [177]":c4$=" c= 'r'- [178]"
1320 ln=1310:p=1:gosub10000
1390 :
1395 :
1400 rem thirtenth character
1410 m$="[176][174][189][173]"
1415 c1$=" c= 'a'- [176]":c2$=" c= 's'- [174]":c3$=" c= 'x'- [189]":c4$=" c= 'z'- [173]"
1420 ln=1410:p=1:gosub10000
1490 :
1495 :
1500 rem fourtenth character
1510 m$="[183][184][162][185][175][164][164][175][185][162][184][183][163]"
1515 c1$=" c= 't'- [163]":c2$=" c= 'y'- [183]":c3$=" c= 'u'- [184]":c4$=" c= 'i'- [162]"
1517 c5$=" c= 'o'- [185]":c6$=" c= 'p'- [175]":c7$=" c= '@'- [164]"
1520 ln=1510:p=1:gosub10000
1590 :
1595 :
1600 rem fiftenth character
1610 m$="[167][170][182][161][181][180][165][180][181][161][182][170][167]"
1615 c1$=" c= 'm'- [167]":c2$=" c= 'n'- [170]":c3$=" c= 'g'- [165]"
1617 c4$=" c= 'h'- [180]":c5$=" c= 'j'- [181]":c6$=" c= 'k'- [161]"
1618 c7$=" c= 'l'-[182]":c8$=""
1620 ln=1610:p=1:gosub10000
1690 :
1695 :
1700 rem sixtenth character
1710 m$="[211][211][211][211][209]"
1715 c1$="shift 's'- [211]":c2$="shift 'q'- [209]":c3$="":c4$="":c5$="":c6$="":c7$=""
1720 ln=1710:p=1:gosub10000
1790 :
1795 :
1800 rem sevententh character
1810 m$="[195]=[195]="
1815 c1$="shift 'c'- [195]":c2$="equal sign ":c3$="":c4$="":c5$="":c6$="":c7$=""
1820 ln=1810:p=1:gosub10000
1890 :
1895 :
1900 rem eightenth character
1910 m$="][]["
1915 c1$="shift ':'- [":c2$="shift ';'- ]":c3$="":c4$="":c5$="":c6$="":c7$=""
1920 ln=1910:p=1:gosub10000
1990 :
1995 :
2000 rem ninetenth character
2010 m$="[169][146][169]"
2015 c1$="rev sh '\'- [169][146]":c2$="shift '\' - [169]":c3$="":c4$="":c5$="":c6$=""
2020 ln=2010:p=2:gosub10000
2090 :
2095 :
2100 rem twentieth character
2110 m$="[192][146] [192][146] "
2115 c1$="shift '*' - [192]":c2$="rev sh '*'- [192][146]":c3$="":c4$="":c5$="":c6$=""
2120 ln=2110:p=4:gosub10000
2190 :
2195 :
2200 rem twenty-first character
2210 m$="[166][146] [166][146] "
2215 c1$=" c= '+'- [166]":c2$="rev c= '+'- [166][146]":c3$="":c4$="":c5$="":c6$=""
2220 ln=2210:p=4:gosub10000
2290 :
2295 :
2300 rem twenty-second character
2310 m$="$!$!"
2315 c1$="shift '4'- $":c2$="shift '1'- ! ":c3$="":c4$="":c5$="":c6$=""
2320 ln=2310:p=1:gosub10000
2390 :
2395 :
2400 rem twenty-third character
2410 m$="...!!"
2415 c1$=" period ":c2$="shift '1'- ! ":c3$="":c4$="":c5$="":c6$=""
2420 ln=2410:p=1:gosub10000
2490 :
2495 :
2500 rem twenty-fourth character
2510 m$="[172][187][190][188][172][187][190][188]"
2515 c1$=" c= 'd'- [172]":c2$=" c= 'f'- [187]":c3$=" c= 'v'- [190]":c4$=" c= 'c'- [188]":c5$=""
2520 ln=2510:p=1:gosub10000
2590 :
2595 :
2600 rem twenty-fifth character
2610 m$="[219][206][205][219][206][205]"
2615 c1$="shift '+'- [219]":c2$="shift 'n'- [206]":c3$="shift 'm'- [205]":c4$=""
2620 ln=2610:p=1:gosub10000
2690 :
2695 :
9000 print"[147]":print"want to see them again (y/n)":poke198,0:wait198,1:getz$
9005 ifz$="n"then9950
9010 ifz$="y"then100
9020 goto9000
9950 print"[147]"
9955 print"load"chr$(34)"payload"chr$(34)",8":print"run"
9960 poke631,13:poke632,13:poke198,2:end
9999 :
10000 rem sub to plot
10010 print"[147]"
10015 print"this cursor uses the characters:"
10017 print:print
10018 printtab(13)c1$:printtab(13)c2$:printtab(13)c3$:printtab(13)c4$
10019 printtab(13)c5$:printtab(13)c6$:printtab(13)c7$
10020 print:printtab(5)"the string is contained in line:":printtab(16)ln
10021 poke781,22:poke782,10:sys65520:print"<please press a key>"
10022 rem this is where the actual
10024 rem plotting routine begins.
10025 forx=1tolen(m$)/p:a$=mid$(m$,x,p):geti$:ifi$<>""then10080
10030 poke781,v1:poke782,h1:syspl:printa$
10040 poke781,v2:poke782,h2:syspl:printa$
10050 poke781,v3:poke782,h3:syspl:printa$
10060 poke781,v4:poke782,h4:syspl:printa$
10065 :
10070 nextx:goto10025
10080 return
20000 rem instructions????
20010 print"[147]"
20020 poke781,2:poke782,8:sys65520:print"gardner's garden tools"
20030 print:print:print
20040 print" well you might have noticed that just":print
20050 print"about everyone likes to use an ordinary":print
20060 print"everyday cursor for an input prompt.":print
20070 print" well, not me!!!":print:print
20080 print" this is why i wrote gardner's garden":print
20090 print"tools. now i can share some of my best":print
20100 print"and perhaps strangest cursor prompts.":print
20105 poke781,22:poke782,10:sys65520:print"<please press a key>"
20106 poke198,0:wait198,1:getz$
20107 print"[147]":poke781,2:poke782,8:sys65520:print"gardner's garden tools"
20108 print:print:print
20110 print" i hope you enjoy this program and i":print
20120 print"hope you will try to think of others ":print
20130 print"and share them with me.":print:print:print
20140 print" and now for your last look at an ":print
20150 print"ordinary cursor.":print:print
20160 poke781,22:poke782,10:sys65520:print"<please press a key>"
20165 x$=" [146] "
20170 fort=1tolen(x$)/2:poke781,23:poke782,19:sys65520:printmid$(x$,t,2)
20180 getz$:ifz$<>""then20190
20182 fordl=1to180:nextdl
20185 nextt:goto20170
20190 return